home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 7794 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  947 b 

  1. Path: ix.netcom.com!netnews
  2. From: pwallin@ix.netcom.com(Patrick Wallin )
  3. Newsgroups: comp.lang.c++
  4. Subject: Separate initization from Instantiation
  5. Date: 19 Feb 1996 01:54:36 GMT
  6. Organization: Netcom
  7. Message-ID: <4g8l8s$e5q@reader2.ix.netcom.com>
  8. References: <4g8i2v$erd@cloner4.netcom.com>
  9. NNTP-Posting-Host: lap-ca4-58.ix.netcom.com
  10. X-NETCOM-Date: Sun Feb 18  5:54:36 PM PST 1996
  11.  
  12. I am researching on initization and instantiation in C++.
  13.  
  14. I do understand the different between them, but I need your help with a
  15. short example that shows separate between initization and
  16. instantiation.  For example, I do not want to show the program that
  17. would initizate and instantate at the same time.  It happens all the
  18. time in the constructor in classes.  
  19.  
  20. So I am trying to figure out how to allocate first and then later we
  21. initialize something.  I would appreciate if you could give me a short
  22. example of it.
  23.  
  24. Thank you.
  25.  
  26. Patrick  pwallin@ix.netcom.com
  27.